package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  客户信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_customer")
@ApiModel("客户信息")
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "customer_id", type = IdType.AUTO)
    @ApiModelProperty("客户id")
    private Integer customerId;
    @ApiModelProperty("客户名字")
    private String customerName;
    @ApiModelProperty("所在地区")
    private String customerRegion;
    @ApiModelProperty("客户经理")
    private Integer customerManager;
    @ApiModelProperty("客户等级")
    private String customerGrade;
    @ApiModelProperty("客户满意度")
    private Integer customerSatisfaction;
    @ApiModelProperty("客户信用度")
    private Integer customerCredit;
    @ApiModelProperty("所在地址")
    private String customerAddress;
    @ApiModelProperty("邮政编码")
    private String customerPostalCode;
    @ApiModelProperty("客户电话")
    private String customerTel;
    @ApiModelProperty("客户邮箱")
    private String customerEmail;
    @ApiModelProperty("营业执照号")
    private String customerLicense;
    @ApiModelProperty("客户法人")
    private String customerLegalPerson;
    @ApiModelProperty("注册资金")
    private Integer customerRegisteredCapital;
    @ApiModelProperty("年营业额")
    private Integer customerAnnualTurnover;
    @ApiModelProperty("开户银行")
    private String customerBank;
    @ApiModelProperty("银行卡号")
    private String customerBankAccount;
    @ApiModelProperty("地税号")
    private String customerLocalTax;
    @ApiModelProperty("国税号")
    private String customerNationalTax;
    @ApiModelProperty("客户状态")
    private String customerState;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;


}
